package com.trayicon.messagenotifier.main;

public class Word {
	private long id;
	private String word;
	private String meaning;
	private String imagePath;
	
	public Word() {
		word = "x";
		meaning = "x";
		imagePath = "";
	}
	
	public Word(String word, String meaning) {
		this.word = word;
		this.meaning = meaning;
		this.imagePath = "";
	}

	public Word(String word, String meaning, String imagePath) {
		this.word = word;
		this.meaning = meaning;
		this.imagePath = imagePath;
	}
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}

	public String getMeaning() {
		return meaning;
	}

	public void setMeaning(String meaning) {
		this.meaning = meaning;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		
		if (!(obj instanceof String)) {
			return false;
		}
		
		return this.word.equalsIgnoreCase((String) obj);
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
	
}
